<div> 
    <script type="text/ng-template" id="editContent.html" />  
	    <div class="modal-header">  
	        <h3 ng-switch on="type">修改
	        	<span ng-switch-when="1">昵称</span>
	        	<span ng-switch-when="2">手机号</span>
	        	<span ng-switch-when="3">安全邮箱</span>
	        	<span ng-switch-when="4">密码</span>
	        </h3>  
	    </div>  
	    <div class="r-form-wrap" id="eidt-user-form" ng-switch on="type">
	    	
			<div ng-switch-when="1" class="r-form-group">
				<div class="r-form-control">
					<i class="iconfont r-form-item-icon">&#xe622;</i>
					<input type="text" class="r-form-item" placeholder="修改昵称"  ng-model="user.name">
				</div>
			</div>
			<div ng-switch-when="2" class="r-form-group mg-b-t">
				<div class="r-form-control">
					<i class="iconfont r-form-item-icon">&#xe627;</i>
					<input type="text" class="r-form-item" placeholder="请输入新手机号" id="phoneid" ng-change="checkPhone();" ng-model="user.phoneNum">
				</div>
				<p class="r-form-error mg-m-t" ng-show="error.phone.flag" ng-hide="!error.phone.flag" ng-bind="error.phone.msg"></p>
			</div>
			<div ng-switch-when="3" class="r-form-group mg-b-t">
				<div class="r-form-control">
					<i class="iconfont r-form-item-icon">&#xe6a9;</i>
					<input type="text" class="r-form-item" placeholder="请输入新邮箱" id="emailid" ng-change="checkEmail();" ng-model="user.email">
				</div>
				<p class="r-form-error mg-m-t" ng-show="error.email.flag" ng-hide="!error.email.flag" ng-bind="error.email.msg"></p>
			</div>
			<div ng-if="type == 2 || type==3"class="r-form-group r-form-group-row mg-b-t">
				<div class="r-form-control mg-b-r r-layout-match">
					<i class="iconfont r-form-item-icon">&#xe62f;</i>
					<input type="vcode" class="r-form-item r-form-vcode" ng-model="user.vcode" id="vcodeid" placeholder="验证码">
				</div>
				<span class="r-button r-button-get-vcode" ng-click="sendVCode();">获取验证码</span>
			</div>
			<p class="r-form-group r-form-error mg-m-t" ng-show="error.code.flag" ng-hide="!error.spwd.flag" ng-bind="error.code.msg"></p>
			<div ng-switch-when="4"  class="r-form-group mg-b-t">
				<div class="r-form-control">
					<i class="iconfont r-form-item-icon">&#xe680;</i>
					<input type="password" class="r-form-item" placeholder="请输入旧密码" ng-change="checkPwd();" ng-model="user.pwd">
				</div>
				<p class="r-form-error mg-m-t" ng-show="error.pwd.flag" ng-hide="!error.pwd.flag" ng-bind="error.pwd.msg"></p>
			</div>
			<div ng-switch-when="4" class="r-form-group mg-b-t">
				<div class="r-form-control">
					<i class="iconfont r-form-item-icon">&#xe680;</i>
					<input type="text" onfocus="this.type='password'" class="r-form-item" placeholder="请输入新密码" ng-change="checkNewPwd();" ng-model="user.newpwd">
				</div>
				<p class="r-form-error mg-m-t" ng-show="error.newpwd.flag" ng-hide="!error.pwd.flag" ng-bind="error.newpwd.msg"></p>
			</div>
			<div ng-switch-when="4" class="r-form-group mg-b-t">
				<div class="r-form-control">
					<i class="iconfont r-form-item-icon">&#xe63b;</i>
					<input type="text" onfocus="this.type='password'" class="r-form-item" placeholder="请确认新密码" ng-change="checkSubmitPwd();" ng-model="user.snewpwd">
				</div>
				<p class="r-form-error mg-m-t" ng-show="error.snewpwd.flag" ng-hide="!error.spwd.flag" ng-bind="error.snewpwd.msg"></p>
			</div>
			<div class="modal-footer">  
		        <button class="btn btn-primary" ng-click="ok()">确定</button>  
		        <button class="btn btn-warning" ng-click="cancel()">取消</button>  
		    </div>  
		</div>
    </script>  
</div>  